<?xml version="1.0" encoding="LATIN1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="_template.xhtml">
	<ui:define name="corpo">

		<div id="conteudo">

			<h:form id="form">
				
				<p:dataTable id="listSetor" value="#{setorBean.allSetorOrderByUnidade}" style="font-size: 11px;"
					var="setor" emptyMessage="Lista de Setores Inventariado" paginator="true" rows="15">

					<f:facet name="header">
						<h:outputText value="SETORES INVENTARIADOS" />
					</f:facet>

					<p:column filterBy="#{setor.nome}" filterMatchMode="contains" 
						headerText="Setor" style="color: blue;">
						<h:outputText value="#{setor.nome}" />
					</p:column>
					
					<p:column filterBy="#{setor.unidade.nome}" filterMatchMode="contains" 
						headerText="Unidade" style="color: blue;" >
						<h:outputText value="#{setor.unidade.nome}" />
					</p:column>
					
					<p:column filterBy="#{setor.unidade.sigla}" filterMatchMode="exact"  style="color: blue; width: 120px; float: center; text-align: center"
						headerText="Sigla" >
						<h:outputText value="#{setor.unidade.sigla}" />
					</p:column>
					
					<p:column headerText="" style="text-align: center; heigth: 30px;">
						<h:outputText value="....." rendered="#{setor.concluido != null}" style="background-image: url(resources/img/cancel2.png);" />
						<h:outputText value="....." rendered="#{setor.concluido == null}" style="background-image: url(resources/img/ok2.png);" />
					</p:column>
					
				</p:dataTable>
				
				<br /><br />
				<p:ajaxStatus style="width:16px;height:16px;" id="ajaxStatusPanel">
					<f:facet name="start">
						<h:graphicImage value="/resources/img/ajaxloading1.gif" />
					</f:facet>

					<f:facet name="complete">
						<h:outputText value="" />
					</f:facet>
				</p:ajaxStatus>	

			</h:form>
		</div>


	</ui:define>
</ui:composition>
</html>